From b9c1953c79688fc3f536b7927692309c9780b5da Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Thu, 6 Jan 2022 17:55:24 +0100
Subject: refactor: reuse PostMeta components on single articles/pages

---
 src/pages/thematique/[slug].tsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'src/pages/thematique/[slug].tsx')

diff --git a/src/pages/thematique/[slug].tsx b/src/pages/thematique/[slug].tsx
index 74c2212..dca8f25 100644
--- a/src/pages/thematique/[slug].tsx
+++ b/src/pages/thematique/[slug].tsx
@@ -11,6 +11,7 @@ import {
   getAllThematicsSlug,
   getThematicBySlug,
 } from '@services/graphql/queries';
+import PostHeader from '@components/PostHeader/PostHeader';
 
 const Thematic: NextPageWithLayout<ThematicProps> = ({ thematic }) => {
   const getPostsList = () => {
@@ -23,10 +24,7 @@ const Thematic: NextPageWithLayout<ThematicProps> = ({ thematic }) => {
 
   return (
     <article>
-      <header>
-        <h1>{thematic.title}</h1>
-        <div dangerouslySetInnerHTML={{ __html: thematic.intro }}></div>
-      </header>
+      <PostHeader intro={thematic.intro} title={thematic.title} />
       <div dangerouslySetInnerHTML={{ __html: thematic.content }}></div>
       {thematic.posts.length > 0 && (
         <div>
-- 
cgit v1.2.3

